widget: Don't call snapshot vfunc if width or height are 0
authorTimm Bäder <mail@baedert.org>
Fri, 2 Feb 2018 13:50:17 +0000 (14:50 +0100)
committerTimm Bäder <mail@baedert.org>
Sat, 3 Feb 2018 11:22:52 +0000 (12:22 +0100)
commit8f7a8ada18f0e7dff2296cf3451ff9116bd2d1e3
tree955ebc1685741e2e653fc38f79045b197cc400e6
parentf52100c46e12ee8b3bfcf19c75a6a13a9a5b178a
widget: Don't call snapshot vfunc if width or height are 0

The result won't be visible anyway. This also prevents problems with
widgets that create some resource the size of the widget, like
GtkGLArea. It also keeps us from snapshotting revealers with
size 0.
gtk/gtkwidget.c